set ( PlN sp_plain ) # plugin name
project ( ${PlN} )

include_directories (
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ../..
  )

set ( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/neuma/lib/plugins )

set ( ${PlN}_SRCS
  sp_plain.cpp
  SyntaxHighlighter.cpp
  )

set ( ${PlN}_MOCS
  sp_plain.h
  SyntaxHighlighter.h
  )

QT4_WRAP_CPP ( MOCS ${${PlN}_MOCS} )

add_library ( ${PlN} MODULE ${${PlN}_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )

target_link_libraries ( ${PlN} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} )

if(CMAKE_SYSTEM_NAME STREQUAL Linux)
  set(NEUMA_LIBS_DIR lib/neuma)
  install(TARGETS ${PlN} DESTINATION lib/neuma/plugins COMPONENT plugin/${PlN})
endif()
